package com.bdqn.service.impl;


import com.bdqn.dao.BrandDao;
import com.bdqn.dao.impl.BrandDaoImpl;
import com.bdqn.entity.TbBrand;
import com.bdqn.service.BrandService;

import java.util.List;

public class BrandServiceImpl implements BrandService {

    private BrandDao brandDao = new BrandDaoImpl();

    @Override
    public int add(TbBrand brand) {
        return brandDao.add(brand);
    }

    @Override
    public int update(TbBrand brand) {
        return brandDao.update(brand);
    }

    @Override
    public boolean delete(String id) {
        return brandDao.delete(id);
    }

    @Override
    public TbBrand selectById(int id) {
        return brandDao.selectById(id);
    }

    @Override
    public List<TbBrand> selectAll() {
        return brandDao.selectAll();
    }
}
